<%--
  Created by IntelliJ IDEA.
  author: Jsonor
  date: 2018/3/21 16:18
  description: Description
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<html>
<head>
  <title>Title</title>
  <style>
    #hid {
      margin: 10px auto;
      text-align: center;
    }
  </style>
</head>
<body>

<h1 id="hid">城市数据</h1>

<form action="${pageContext.request.contextPath}/update.do" method="post">
  <%--传入pid，属性设置隐藏，不要忘记设置name--%>
  <input type="hidden" name="currentPage" value="${pageScope.currentPage}">
  <table width="800px" style="margin: auto;text-align: right" border="0" cellspacing="0">
    <tr height="50px">
      <td>Name：</td>
      <td align="left"><input type="text " name="name" value="${country.name}"></td>
    </tr>
    <tr height="50px">
      <td>Code：</td>
      <td align="left"><input type="text " name="code" value="${country.code}"></td>
    </tr>
    <tr height="50px">
      <td>District：</td>
      <td align="left"><input type="text " name="region" value="${country.region}"></td>
    </tr>
    <tr height="50px">
      <td>Population：</td>
      <td align="left"><input type="text " name="population" value="${country.population}"></td>
    </tr>
    <tr height="70px">
      <td><input type="submit" value="提交"></td>
      <td align="left" style="padding-left: 30px"><input type="reset" value="重置"></td>
    </tr>
  </table>
</form>
</body>
</html>
